/*
 * @Author       : Hejh(3010733382@qq.com)
 * @Version      : V1.0
 * @Date         : 2024-01-29 12:45:29
 * @Description  : 问题相关的一些类型
 */
import type { PageRes } from './commom'

export interface QuestionReq {
  page?: number
  pageSize?: number
  paperId?: string
}

// Question返回实体
export interface QuestionRes {
  id: string
  name: string
  pic:string
  answer:string
  analysis:string
  anaPics:string
  options: string|string[]
  paperId:string
  type:string
  score:string
  Paper:any
  createTime:string
  isError?:boolean
}

// 分页Question返回实体
export type QuestionPageRes = PageRes<QuestionRes>

// 问题添加请求实体类型
export interface QuestionCreateReq {
  name: string
  pic?:string
  answer:string
  analysis:string
  anaPics?:string
  options: string
  paperId:string
  type:string
  score:string
}

// 问题修改请求实体
export interface QuestionUpdateReq {
  questionId?: string
  name: string
  pic:string
  answer:string
  analysis:string
  anaPics:string
  options: string
  paperId:string
  type:string
  score:string
}

export type QuestionRowData = QuestionRes

export interface QuestionRowInfo extends QuestionRes {
  yourAnswer: string
  yourAnswerList: string[]
}
